package com.xinsilu.hospital.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author ym
 * @since 2021-09-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="DrugTable对象", description="")
public class DrugTable implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "费用")
        private double cost;

    @DateTimeFormat()
    @ApiModelProperty(value = "生产日期")
    private String manufactureDate;

    @ApiModelProperty(value = "保质期")
    private String quality;

    @ApiModelProperty(value = "类型（中，西药）")
    private String type;

    @ApiModelProperty(value = "数量")
    private Integer quantity;

    @ApiModelProperty(value = "批号")
    @TableField("Batch_number")
    private Integer batchNumber;

    @ApiModelProperty(value = "经办人")
    @TableField("Handler")
    private String Handler;

    @ApiModelProperty(value = "单位（盒，瓶，包）")
    @TableField("Company")
    private String Company;


}
